  /**
   * Generate time : 2016-08-17 13:24:26
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.ch.domain;

import com.baosight.iplat4j.util.NumberUtils;

import java.math.BigDecimal;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;

import java.util.HashMap;
import java.util.Map;

import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCHTSPGDispatchFinal 
 *  
 */
public class ZMCHTSPGDispatch extends DaoEPBase {

	private String fdKeyId = " ";		/* 主键*/
	private String fdMiningName = " ";		/* 矿井名称*/
	private String fdMiningId = " ";		/* 矿井id*/
	private String fdWorknumId = " ";		/* 生产班次*/
	private String fdStatus = "草拟";		/* 状态*/
	private String fdVirtualDate = " ";		/* 调度日期*/
	private String fdCurrentDate = " ";		/* 当前日期*/
	private BigDecimal fdPgValue = new BigDecimal("0");		/* 排矸量(斗)*/
	private BigDecimal fdGanziValue = new BigDecimal("0");		/* 矸子(车)*/
	private String fdReportDepartment = " ";		/* 汇报部门*/
	private BigDecimal fdClValue = new BigDecimal("0");		/* 材料(车)*/
	private String fdPlace = " ";		/* 地点*/
	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMiningName");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("矿井名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMiningId");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("矿井id");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdWorknumId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("生产班次");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdStatus");
	eiColumn.setFieldLength(6);	
	eiColumn.setDescName("状态");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdVirtualDate");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("调度日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCurrentDate");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("当前日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPgValue");
	eiColumn.setType("N");
	eiColumn.setScaleLength(1);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("排矸量(斗)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdGanziValue");
	eiColumn.setType("N");
	eiColumn.setScaleLength(1);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("矸子(车)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdReportDepartment");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("汇报部门");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdClValue");
	eiColumn.setType("N");
	eiColumn.setScaleLength(1);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("材料(车)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPlace");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("地点");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCHTSPGDispatch() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - 主键
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	/**
	 * get the fdMiningName - 矿井名称
	 * @return the fdMiningName
	 */
	public String getFdMiningName() {
		return this.fdMiningName;
	}
	
	/**
	 * set the fdMiningName - 矿井名称
	 */
	public void setFdMiningName(String fdMiningName) {
		this.fdMiningName = fdMiningName;
	}
	/**
	 * get the fdMiningId - 矿井id
	 * @return the fdMiningId
	 */
	public String getFdMiningId() {
		return this.fdMiningId;
	}
	
	/**
	 * set the fdMiningId - 矿井id
	 */
	public void setFdMiningId(String fdMiningId) {
		this.fdMiningId = fdMiningId;
	}
	/**
	 * get the fdWorknumId - 生产班次
	 * @return the fdWorknumId
	 */
	public String getFdWorknumId() {
		return this.fdWorknumId;
	}
	
	/**
	 * set the fdWorknumId - 生产班次
	 */
	public void setFdWorknumId(String fdWorknumId) {
		this.fdWorknumId = fdWorknumId;
	}
	/**
	 * get the fdStatus - 状态
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}
	
	/**
	 * set the fdStatus - 状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}
	/**
	 * get the fdVirtualDate - 调度日期
	 * @return the fdVirtualDate
	 */
	public String getFdVirtualDate() {
		return this.fdVirtualDate;
	}
	
	/**
	 * set the fdVirtualDate - 调度日期
	 */
	public void setFdVirtualDate(String fdVirtualDate) {
		this.fdVirtualDate = fdVirtualDate;
	}
	/**
	 * get the fdCurrentDate - 当前日期
	 * @return the fdCurrentDate
	 */
	public String getFdCurrentDate() {
		return this.fdCurrentDate;
	}
	
	/**
	 * set the fdCurrentDate - 当前日期
	 */
	public void setFdCurrentDate(String fdCurrentDate) {
		this.fdCurrentDate = fdCurrentDate;
	}
	/**
	 * get the fdPgValue - 排矸量(斗)
	 * @return the fdPgValue
	 */
	public BigDecimal getFdPgValue() {
		return this.fdPgValue;
	}
	
	/**
	 * set the fdPgValue - 排矸量(斗)
	 */
	public void setFdPgValue(BigDecimal fdPgValue) {
		this.fdPgValue = fdPgValue;
	}
	/**
	 * get the fdGanziValue - 矸子(车)
	 * @return the fdGanziValue
	 */
	public BigDecimal getFdGanziValue() {
		return this.fdGanziValue;
	}
	
	/**
	 * set the fdGanziValue - 矸子(车)
	 */
	public void setFdGanziValue(BigDecimal fdGanziValue) {
		this.fdGanziValue = fdGanziValue;
	}
	/**
	 * get the fdReportDepartment - 汇报部门
	 * @return the fdReportDepartment
	 */
	public String getFdReportDepartment() {
		return this.fdReportDepartment;
	}
	
	/**
	 * set the fdReportDepartment - 汇报部门
	 */
	public void setFdReportDepartment(String fdReportDepartment) {
		this.fdReportDepartment = fdReportDepartment;
	}
	/**
	 * get the fdClValue - 材料(车)
	 * @return the fdClValue
	 */
	public BigDecimal getFdClValue() {
		return this.fdClValue;
	}
	
	/**
	 * set the fdClValue - 材料(车)
	 */
	public void setFdClValue(BigDecimal fdClValue) {
		this.fdClValue = fdClValue;
	}
	
	/**
	 * get the FdPlace - 地点
	 * @return the FdPlace
	 */
	public String getFdPlace() {
		return this.fdPlace;
	}
	/**
	 * set the fdPlace - 地点
	 */
	public void setFdPlace(String fdPlace) {
		this.fdPlace = fdPlace;
	}
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdMiningName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMiningName")), fdMiningName));
		setFdMiningId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMiningId")), fdMiningId));
		setFdWorknumId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdWorknumId")), fdWorknumId));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdVirtualDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdVirtualDate")), fdVirtualDate));
		setFdCurrentDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCurrentDate")), fdCurrentDate));
		setFdPgValue(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdPgValue")), fdPgValue));
		setFdGanziValue(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdGanziValue")), fdGanziValue));
		setFdReportDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportDepartment")), fdReportDepartment));
		setFdClValue(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdClValue")), fdClValue));
		setFdPlace(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPlace")), fdPlace));

	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdMiningName",StringUtils.toString(fdMiningName, eiMetadata.getMeta("fdMiningName")));	
			map.put("fdMiningId",StringUtils.toString(fdMiningId, eiMetadata.getMeta("fdMiningId")));	
			map.put("fdWorknumId",StringUtils.toString(fdWorknumId, eiMetadata.getMeta("fdWorknumId")));	
			map.put("fdStatus",StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));	
			map.put("fdVirtualDate",StringUtils.toString(fdVirtualDate, eiMetadata.getMeta("fdVirtualDate")));	
			map.put("fdCurrentDate",StringUtils.toString(fdCurrentDate, eiMetadata.getMeta("fdCurrentDate")));	
			map.put("fdPgValue",StringUtils.toString(fdPgValue, eiMetadata.getMeta("fdPgValue")));	
			map.put("fdGanziValue",StringUtils.toString(fdGanziValue, eiMetadata.getMeta("fdGanziValue")));	
			map.put("fdReportDepartment",StringUtils.toString(fdReportDepartment, eiMetadata.getMeta("fdReportDepartment")));
			map.put("fdClValue",StringUtils.toString(fdClValue, eiMetadata.getMeta("fdClValue")));	
			map.put("fdPlace",StringUtils.toString(fdPlace, eiMetadata.getMeta("fdPlace")));	

		return map;
	
	}
}